package com.rbac.i18n.constant;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
@EnableConfigurationProperties
@ConfigurationProperties(prefix = "rbac.i18n")
@PropertySource(
        value = {"classpath:${spring.messages.file.basename}.properties", "file:${spring.messages.file.basename}","classpath:${spring.validation.file.basename}.properties", "file:${spring.validation.file.basename}"},
        ignoreResourceNotFound = true)
public class I18nMsg {

    private Map<String, String> msg;

    public Map<String, String> getMsg() {
        return msg;
    }

    public void setMsg(Map<String, String> msg) {
        this.msg = msg;
    }
}